[?php if(!$<?php echo $this->getSingularName() ?>->isNew()): ?]
<div id="div_detalles">
    <?php $tablaDetalle=$this->getParameterValue('detalles.tabla');?>
    <fieldset id="sf_fieldset_<?php echo $tablaDetalle ?>" class="">
    <h2>[?php echo __('<?php echo $tablaDetalle ?>') ?] </h2>
    </fieldset>

          
     <?php 
        sfConfigCache::getInstance()->import(sfConfig::get('sf_app_module_dir_name').'/'.$tablaDetalle.'/'.sfConfig::get('sf_app_module_config_dir_name').'/generator.yml', true, true);
         $ubicacion = $this->getParameterValue('ubicacion') ;
     ?>
      [?php 
         $<?php echo $this->getParameterValue('detalles.tabla')?>Actions = null;
         $lbs = null;
         
         try{
         
            @include_once('cache/<?php echo SF_APP ;?>/dev/modules/auto<?php echo ucfirst($this->getParameterValue('detalles.tabla'))?>/actions/actions.class.php');
            @include_once('<?php echo $ubicacion ?>/modules/<?php echo $this->getParameterValue('detalles.tabla')?>/actions/actions.class.php');
            $<?php echo $this->getParameterValue('detalles.tabla')?>Actions = new <?php echo $this->getParameterValue('detalles.tabla')?>Actions(); 
            $lbs = $<?php echo $this->getParameterValue('detalles.tabla')?>Actions->getLabels();           
         }catch(Exception $e){}

        $detalles = $<?php echo $this->getSingularName() ?>-><?php echo ($this->getParameterValue('detalles.metodo'))?>();
        $pager = new ArrayPaginador(null, 500); 
        $pager->setResultArray($detalles);
        $pager->setPage(1);
        $pager->init();
        include_partial('<?php echo $this->getParameterValue('detalles.tabla')."/list" ?>', array('pager' =>$pager ,'labels'=>$lbs)); 



        ?]  
</div>

[?php endif; ?]